<!DOCTYPE html>
<html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>">
<head>
<meta charset="UTF-8" />
<title><?php echo $title; ?></title>
<base href="<?php echo $base; ?>" />
<!-- 
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
 -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/mobile/stylesheet/stylesheet.css" />
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript" src="catalog/view/javascript/common.js"></script>


<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>
<!--[if IE 7]> 
<link rel="stylesheet" type="text/css" href="catalog/view/stylesheet/ie7.css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/stylesheet/ie6.css" />
<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('#logo img');
</script>
<![endif]-->
<?php if ($stores) { ?>
<script type="text/javascript"><!--
$(document).ready(function() {
<?php foreach ($stores as $store) { ?>
$('body').prepend('<iframe src="<?php echo $store; ?>" style="display: none;"></iframe>');
<?php } ?>
});

$(document).ready(function(){
    // Confirm Delete
    $('#form').submit(function(){
        if ($(this).attr('action').indexOf('delete',1) != -1) {
            if (!confirm('<?php echo $text_confirm; ?>')) {
                return false;
            }
        }
    });
    // Confirm Uninstall
    $('a').click(function(){
        if ($(this).attr('href') != null && $(this).attr('href').indexOf('delete', 1) != -1) {
            if (!confirm('<?php echo $text_confirm; ?>')) {
                return false;
            }
        }
    });
        });
//--></script>
<?php } ?>
<?php echo $google_analytics; ?>
<style type="text/css">
#container{
	overflow:hidden !important;
}

#content{
	min-width:300px;
}

.advice_info {
	widht: 100%;
	min-height: 30px;
	margin-top: 5px;
}

.advice_info>.advice_head {
	height: 38px;
	line-height:38px;
	padding-left: 7px;
	padding-right: 7px;
	border: 1px solid #4f5aa4;
	background: url('catalog/view/theme/mobile/image/box.png') repeat-x;
	-webkit-border-radius: 7px 7px 0px 0px;
	-moz-border-radius: 7px 7px 0px 0px;
	-khtml-border-radius: 7px 7px 0px 0px;
	border-radius: 7px 7px 0px 0px;
}

.advice_info>.advice_content {
	padding: 10px;
	border-left: 1px solid #4f5aa4;
	border-right: 1px solid #4f5aa4;
	border-bottom: 1px solid #4f5aa4;
	min-height: 80px;
	overflow: auto;
}
.advice_info>.logo {
	border-left: 1px solid #4f5aa4;
	border-right: 1px solid #4f5aa4;
	overflow: auto;
}

.advice_info>.logo > img {
	height:200px;
}

.advice_info>.advice_head h2{
	text-align:center;
	color:#ffffff;
}
#description{
	min-height:300px;
}


.left{
	float:left;
}

.right{
	float:right;
}

.no_message{
	text-align:center;
	font-size:14px;
	color:#4f5aa4;
}

#list{
	border:1px solid #4f5aa4;
	margin-top:10px;
	margin-left:5px;
	margin-right:5px;
	padding-left:10px;
	height:35px;
	line-height:35px;
}

#list img{
	float:right;
	width:35px;
	height:35px;
}


#list a{
	text-decoration: none;
	color: #4d5ab4;
	font-size:14px;
	font-weight:bold;
	display:block;
}

.account_right{
	min-width:300px;
	min-height:100px;
	padding-top:10px !important;
}


</style>
</head>
<body>

<div id="container">
<?php if ($error) { ?>
    <div class="warning"><?php echo $error ?><img src="catalog/view/theme/mobile/image/close.png" alt="" class="close" /></div>
<?php } ?>
<div id="notification"></div>
